package com.hjm.java.service;

import android.content.Context;
import android.os.Handler;
import android.util.Log;

import com.hjm.java.utils.HttpUtils;

public class BaseService implements HttpUtils.Listener{
    Handler mHandler;
    Context mContext;
    HttpUtils httpUtils;

    public static String baseUrl = "http://110.41.64.145:8848/api";
    public static String baseImgUrl = baseUrl+ "/image/";

    private String TAG = "BaseService";

    public BaseService(Context mContext, Handler mHandler) {
        this.mContext = mContext;
        this.mHandler = mHandler;
        httpUtils = new HttpUtils(mContext,this);
    }

    @Override
    public void unLogin() {
        Log.d(TAG, "unLogin: 未登录");
//        mHandler.post(()->{
//            Intent intent = new Intent(mContext, UserActivity.class);
//            intent.putExtra("isLogin",true);
//            mContext.startActivity(intent);
//        });
    }
}
